package com.itheima2;


import java.io.File;

public class Work05 {
    public static void main(String[] args) {
        File file = new File("D:\\itcast");
        getAllFilePath(file);
    }
    public static void getAllFilePath(File srcFile){
        File[] files = srcFile.listFiles();
        for (File file : files) {
            if (file.isDirectory()){
                getAllFilePath(file);
            }else {
                System.out.println(file.getAbsolutePath());
            }
        }
    }
}
